<?php

	

	$con = mysql_connect("localhost", "group5", "group5");
    if(!$con)
    {
		echo "Connection failed!";
        exit;
    }
	
	
	
	mysql_select_db("group5");
	
	$roomNum = $_POST['room'];
	$building = $_POST['building'];
	$capacity = $_POST['capacity'];
	
	$query = "insert into ROOM (maxCapacity, roomNumber, bldgID) VALUES ($capacity,$roomNum,$building)";
	
	echo $query;
	
	mysql_query($query,$con);
	
	header("Location:adminCreate.php");


?>